import httpRequest from "@/axios/index.js"

/**
 * 查询下拉列表
 */
export function queryFormAllReq(){
    return httpRequest({
        url:"/workflow/form/query/all",
        method:"get"
    })
}

/**
 * 查询分页列表
 */
 export function querySelectiveReq(pageNum,pageSize,data){
    return httpRequest({
        url:"/workflow/form/list?pageNum="+pageNum+"&pageSize="+pageSize,
        method:"post",
        data:data
    })
}

/**
 * 添加
 */
 export function addReq(data){
    return httpRequest({
        url:"/workflow/form/add",
        method:"post",
        data:data
    })
}

/**
 * 修改
 */
 export function updateReq(data){
    return httpRequest({
        url:"/workflow/form/update",
        method:"put",
        data:data
    })
}

/**
 * 删除
 */
 export function deleteReq(ids){
    return httpRequest({
        url:"/workflow/form/delete",
        method:"post",
        data:ids
    })
}

/**
 * 查询表单信息
 */
export function queryByIdReq(id){
    return httpRequest({
        url:"/workflow/form/query/"+id,
        method:"get",
    })
}